var express = require('express');
var router = express.Router();
var dataCtrl = require("../controllers/product.controller");

/* GET users listing. */
router.post('/', dataCtrl.create); //增加
router.put('/:id', dataCtrl.update); //修改
router.delete('/:id', dataCtrl.delete); //单条删除
router.get('/:id', dataCtrl.selectbyId); //根据id查找
router.post('/list', dataCtrl.list); //分页（10条为一页）--查找多条记录
router.post('/deletes', dataCtrl.deletes); //多条删除

module.exports = router;